/*
 * currency_box.h
 *
 *  Created on: Jan 3, 2009
 *      Author: root
 */


#ifndef CURRENCY_BOX_H_
#define CURRENCY_BOX_H_


#include <glib.h>
#include <glib-object.h>
#include <gtk/gtkvbox.h>
#include <gtk/gtkcombobox.h>

G_BEGIN_DECLS
#define CURRENCY_BOX_TYPE				(currency_box_get_type())
#define CURRENCY_BOX(obj)				(G_TYPE_CHECK_INSTANCE_CAST ((obj),\
											CURRENCY_BOX_TYPE, CurrencyBox))
#define CURRENCY_BOX_CLASS(kclass)		(G_TYPE_CHECK_CLASS_CAST ((klass),\
											CURRENCY_BOX_TYPE,CurrencyBoxClass))
#define IS_CURRENCY_BOX(obj)			(G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
											CURRENCY_BOX_TYPE))
#define IS_CURRENCY_BOX_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE ((klass),\
												CURRENCY_BOX_TYPE))

typedef struct _CurrencyBox CurrencyBox;
typedef struct _CurrencyBoxClass CurrencyBoxClass;

struct _CurrencyBox {
	GtkVBox vbox;
};

struct _CurrencyBoxClass {
	GtkVBoxClass parrent_class;
	//function declarations after
};


GType	currency_box_get_type (void) G_GNUC_CONST;
GtkWidget *currency_box_new (void);

GtkComboBox *currency_box_get_combo (CurrencyBox *currencybox);
gfloat currency_box_get_value (CurrencyBox *currencybox);
void currency_box_set_value (CurrencyBox *currencybox, gfloat value);

G_END_DECLS

#endif /* CURRENCY_BOX_H_ */
